package com.wang.commons.pojo;

public enum StatusCode {

    LOGINERROR("登录异常",20010),
    NORMALERROR("转换异常",20011),
    PARAMERROR("参数异常",20012),
    XERROR("未知异常",20013);

    private String desc;//文字描述
    private Integer code; //对应的代码

    StatusCode (String desc,Integer code){
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getCode() {
        return code;
    }
}
